﻿<%@ Page Language="C#" MasterPageFile="~/User/MasterPage.master" AutoEventWireup="true" CodeFile="Sanphamtheodanhmuc.aspx.cs" Inherits="User_Sanphamtheodanhmuc" Title="Untitled Page" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<%-- Add content controls here --%>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<div style="min-height:1500px">
<div style="margin:15px auto -10px ">
<div class="box_choose">
    <div class="choose">Chọn thể loại</div>
    <div class="cat_choose" style="z-index:1001">
        <a href="Trangchu.aspx" class="active">Chọn tất cả</a> | <asp:Repeater ID="rp_danhmuc" runat="server" OnItemDataBound="rp_danhmuc_ItemDataBound" EnableTheming="true">
        <ItemTemplate>
            <asp:HyperLink ID="hp_tendanhmuc" runat="server"></asp:HyperLink>  |
        </ItemTemplate>
        </asp:Repeater>
   </div>
</div>
</div>
<div class="deal_feature" style="margin-top:35px">
    <asp:Repeater ID="Repeater2" runat="server"  OnItemDataBound="Repeater2_ItemDataBound" EnableTheming="true">
    <ItemTemplate>
    <div class="img_feature">
        <div class="team_images">
            <asp:HyperLink ID="hp_ctsp" runat="server">
                <asp:Image ID="img_hot" runat="server" Width="359" Height="254" BorderWidth="1px" /></asp:HyperLink>
        </div>
        
    </div>
    <div id="right_feature">
        <div class="title_feature">
            <asp:HyperLink ID="hp_tensphot" runat="server"></asp:HyperLink>
        </div>
     <%--   <div class="giao_voucher">
        <img src="images/voucher-icon.png" alt="" /> (Giao voucher)
        </div>--%>
        <div class="mota">
            <asp:Literal ID="lit_motahot" runat="server"></asp:Literal>
        </div>
    </div>
    <div class="price_feature">
        <span class="hot_price">
            <asp:Literal ID="lit_giahot" runat="server"></asp:Literal>
            <em style="font-size:28px; font-weight:bold;">VNĐ</em>
        </span>
        <br />
        <br />
        <div class="giaban">
           Giá gốc: <span style="text-decoration:line-through">
               <asp:Literal ID="lit_giagochot" runat="server"></asp:Literal></span>
        </div>
        <div style="clear:both"></div>
       <div class="box_tietkiem">
            <span>Tiết kiệm: </span>
            <span class="number">
                <asp:Literal ID="lit_tietkiemhot" runat="server"></asp:Literal></span>
        </div>
        <div class="box_nguoidamua">
            <span>Số người đã mua: </span>
            <span class="number">
                <asp:Literal ID="lit_nguoidamuahot" runat="server"></asp:Literal></span>
        </div>
    <script type="text/javascript" src="js/jquery.countdown.js"></script>
         <script type="text/javascript">
$(function () {
	shortly = new Date(); 
    shortly.setSeconds(shortly.getSeconds() + <%=sogiay %>); 
	$('#defaultCountdown').countdown({onExpiry: liftOff, until: shortly});
//	$('#compact').countdown({until: liftoff, compact: true, 
//    description: ''});
});
function liftOff() { 
    $.ajax({
      type: "GET",
      url: "hethan.aspx",
      data: { id: "<%=Request.QueryString["id"] %>"}
    }).done(function( ) {
        window.location = "Trangchu.aspx?id=<%=Request.QueryString["id"] %>";
    });
} 
</script>
       <div class="box_thoigian">
            <div>Thời gian còn lại:</div>
            <span id="defaultCountdown"></span>
        </div>
        
    </div>
    <div class="myButton">
        <asp:HyperLink ID="hp_xem2" runat="server"><asp:Button ID="Button1" runat="server" Text="XEM" Width="120" Height="50" Font-Bold="true" Font-Size="30px" CssClass="button" /></asp:HyperLink>
    </div>
    </ItemTemplate>
    </asp:Repeater>
</div>
<div id="listdeal">
 <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound" EnableTheming="true">
    <ItemTemplate>
    <div class="deal_list">
        <div class="deal_list_title">
            <asp:HyperLink ID="hp_tensp" runat="server"></asp:HyperLink>	
        </div>
        <div class="deal_list_img">
            <asp:Image ID="img_hinh" runat="server" Width="267px" Height="183px" BorderWidth="1px"/></div>
        <div class="deal_list_detail">
            <asp:Literal ID="lit_mota" runat="server"></asp:Literal>
        </div>
        <div style="width:150px; float:left;">
            <div class="deal_list_price">
		        <div class="number">
                    <asp:Literal ID="lit_giaban" runat="server"></asp:Literal><span>VNĐ</span></div>
		        </div>
            <div style="margin-top:0px; float:left; font-style:normal;">
		        <span style="font-size:13px;">Giá gốc: <em style="text-decoration:line-through;font-size:13px; color:#666; font-style:normal; ">
                <asp:Literal ID="lit_giagoc" runat="server"></asp:Literal></em></span></div>    
        </div>
        <asp:HyperLink ID="hp_xem1" runat="server"><asp:Button ID="Button2" runat="server" Text="Xem" CssClass="button feature" /></asp:HyperLink>
        <div class="list_price">
            <div class="box_tietkiem">
                <span>Tiết kiệm</span>
                <span class="number">
                    <asp:Literal ID="lit_tietkiem" runat="server"></asp:Literal></span>
            </div>
            <div class="box_nguoidamua">
                <span>Số người đã mua</span>
                <span class="number"><asp:Literal ID="lit_nguoidamua" runat="server"></asp:Literal></span>
            </div>
            <div class="box_thoigian">
                <span>Thời gian còn lại</span>
                <span class="defaultCountdown"></span>
            </div>
        </div>
     </div>
    </ItemTemplate>
    </asp:Repeater>
    </div>
<div id="phantrang">
         <cc1:PagerV2_8 ID="pager" runat="server" CssClass="paginator" />
        </div>
</div>
</asp:Content>

